package com.jk.smartelderlycare.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hhk
 * @version 1.0
 * @ClassName RabbitConfig
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/11/28 14:16
 */
@Configuration
public class RabbitConfig {
//    TODO:创建消息队列 并且队列名叫做hello
    @Bean
    public Queue Queue() {
        return new Queue("hello");
    }
    @Bean
    public Queue obj(){
        return new Queue("object");
    }

}
